import Mock from 'mockjs';
Mock.mock(/\/api\/head\/data/, 'get', {
    'name': 'John Doe',
    'age|1-100': 100,
    'list|1-10': [{
        'id|+1': 1,
        'name': '@name'
    }]
});
// 项目情况
Mock.mock(/\/api\/head\/data/, 'post', () => {
    return {
        "cityId": 1002,
        "cityName": "哈尔滨",
        "project": {
            "projectId": 2002,
            "total": 0.832,
            "selfPre": 0.664,
            "tongFuPre": 0.765,
            "ziYouPre": 0.93,
            "ziYanPre": 0.783,
            "jiaoFuPre": 0.836,
            "qianZhiPre": 0.682,
            "ydkPre": 0.456,
            "yywyPre": 0.754,
            "projectMgrPre": 0.789
        },
        "income": {
            "incomeId": 3002,
            "itIncome": 6433.0,
            "ctIncome": 643.0,
            "nIncome": 4632.0,
            "totalIncome": 11708.0
        },
        "mgr": {
            "mgrId": 4002,
            "ztPro": 200,
            "yjxPro": 200,
            "xsShangji": 300,
            "dyLxPro": 50,
            "ylProNone": 50,
            "zbDlx": 50,
            "lxDqy": 50,
            "jfDys": 3,
            "totalMgr": 903
        },
        "mgrThree": {
            "mgrIdThree": 5002,
            "tbProCount": 40,
            "sjZcFaCount": 40,
            "zbProCount": 40,
            "zbProAmount": 40,
            "sjZcPre": 0,
            "zbProSjPre": 0
        },
        "question": {
            "questionId": 6002,
            "yqPro": 21,
            "fjPro": 30,
            "yqJdPro": 2,
            "jtBz": 10,
            "yqJfPro": 10,
            "czJf": 10
        },
        "errors": {}
    }
})